<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head th:replace="~{commons/public::common-public}">
  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
  <meta name="description" content="">
  <meta name="author" content="">
</head>
<body>
<!--图标-->

<div class="container-fluid">
  <div class="row">
    <div class="col-md-2 justify-content-between cbl" th:include="~{commons/header::common-header}" style="margin:0;padding:0;">
    </div>
    <!-- 右部分 -->
    <div class="col-md-10 bg2">
      <div class="content2">
        <div class="search">
          <nav class="navbar navbar-expand-lg bg-#000000" data-bs-theme="dark">
            <div class="container-fluid">
              <a class="navbar-brand" href="#">YUEDU</a>
              <button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarSupportedContent"
                      aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
                <span class="navbar-toggler-icon"></span>
              </button>
              <div class="collapse navbar-collapse" id="navbarSupportedContent">
                <ul class="navbar-nav me-auto mb-2 mb-lg-0">
                  <li class="nav-item">
                    <a class="nav-link" href="#">阅读统计</a>
                  </li>

                  <li class="nav-item dropdown">
                    <a class="nav-link dropdown-toggle" href="article-manager.html" role="button" data-bs-toggle="dropdown" aria-expanded="false">
                      评分统计
                    </a>
                  </li>

                </ul>
                <form class="d-flex" role="search">
                  <input class="form-control me-2" type="search" placeholder="Search" aria-label="Search">
                  <button class="btn btn-outline-success" type="submit">Search</button>
                </form>
              </div>
            </div>
          </nav>
        </div>
        <!-- 主要内容 -->
        <div class="main col-md-12 justify-content-center" style=";height: 800px;background-color: rgba(212,220,196,0.5); ">
          <div class="row" style="height: 100px;"></div>
          <div class="row">
            <div class="col-md-1"></div>
            <div class="col-md-8">
              <table class="table table-border justify-content-center"style=";width: 1000px">
                <caption>全部文章</caption>
                <thead>
                <tr class="fs-5 justify-content-center" style="font-family: 楷体;">
                  <th>文章ID</th>
                  <th>文章标题</th>
                  <th>年级</th>
                  <th>作者</th>
                  <th>出版时间</th>
                  <th>操作</th>
                </tr>
                </thead>
                <tbody style="vertical-align: middle">
                <tr th:each="a:${articlelist}">
                  <td th:text="${a.ArticleID}"></td>
                  <td th:text="${a.Title}"></td>
                  <td th:text="${a.Grade}"></td>
                  <td th:text="${a.Author}"></td>
                  <td th:text="${a.PublishTime}"></td>
                   <td>
                     <a th:href="@{/user/content(id=${a.ArticleID})}" class="btn btn-default btn-sm manager-an one">查看</a>
                    <a th:href="@{/user/article-add}" class="btn btn-default btn-sm manager-an two" >增加</a>
                    <a th:href="@{/user/update(id=${a.ArticleID})}" class="btn btn-default btn-sm manager-an three">修改</a>
                    <a th:href="@{/user/delete(id=${a.ArticleID})}" onclick="return confirm('确定要删除吗')" class="btn btn-default btn-sm manager-an four">删除</a>
                  </td>
                  <!--想在这里放一个时间选择器，可以修改时间-->
                </tr>
                <tr></tr>
                <tr></tr>
                </tbody>
              </table>
            </div>
          </div>
        </div>
        </div>
    </div>
  </div>
</div>

</body>
</html>
